#encoding='gbk'

import unittest
import HTMLTestRunner


if __name__=='__main__':
    #testSuite= unittest.TestLoader().discover('.')
    testSuite= unittest.TestLoader().discover('D:\\pythonProject3\\unittest\\')
    #testSuite= unittest.TestLoader()
    filename= 'test23.html'
    fp= open(filename,'wb')
    runner= HTMLTestRunner.HTMLTestRunner(stream=fp,
                                          title=u'测试报告',
                                          description=u'测试报告内容')
    runner.run(testSuite)
    fp.close()